<?php
use doumiaoduo\layer\LayerConfirmWidget;
use doumiaoduo\layer\LayerIframeWidget;
LayerConfirmWidget::widget();
LayerIframeWidget::widget();
use common\components\widgets\Datetimepicker;
Datetimepicker::widget(['timepicker' => 'true','datepicker'=>'false','format'=>'H:i','step'=>'5']);
?>
<div class="yx-praise-list-box yx-praise-box yx-radius2 zx-min-height">
    <!--/*添加按钮*/-->
    <?= $this->renderFile('@app/views/layouts/toolbar.php'); ?>
    <!--/*表*/-->
    <div class="docs-main zx-mg">
        <table id="tablesaw" class="tablesaw table yx-table1 yx-table3 table-striped with-check"  data-tablesaw-mode="swipe" data-tablesaw-minimap >
            <thead>
            <tr class="yx-bgd2f6ec">
                <th><?=\Yii::t('zhtfrontend','ID');?></th>
                <th><?=\Yii::t('zhtfrontend','发卡人');?></th>
                <th><?=\Yii::t('zhtfrontend','所属批次');?></th>
                <th><?=\Yii::t('zhtfrontend','开始卡号');?></th>
                <th><?=\Yii::t('zhtfrontend','结束卡号');?></th>
                <th><?=\Yii::t('zhtfrontend','发卡数量');?></th>
                <th><?=\Yii::t('zhtfrontend','已激活数量');?></th>
                <th><?=\Yii::t('zhtfrontend','创建用户');?></th>
                <th><?=\Yii::t('zhtfrontend','创建时间');?></th>
                <th><?=\Yii::t('zhtfrontend','操作');?></th>
            </tr>
            </thead>
            <?php if($data):?>
                <?php foreach($data as $item):?>
                    <tr data-id="<?=$item['id']?>">
                        <td><?=$item['id']?></td>
                        <td><?=$item['salesman_name']?></td>
                        <td><?=$item['batch_name']?></td>
                        <td><?=$item['card_start']?></td>
                        <td><?=$item['card_end']?></td>
                        <td><?=$item['number']?></td>
                        <td><?=$item['activationcount']?></td>
                        <td><?=$item['admin_name']?></td>
                        <td><?=$item['created_at']?></td>
                        <td><?=$item['zhtfrontend_operate']?></td>
                    </tr>
                <?php endforeach;?>
            <?php endif;?>
        </table>
        <div style="text-align: right"><?= common\components\widgets\GoPager::widget(['pagination' => $pages]) ?></div>
    </div>
</div>
















